package it.bsoft.gameboy.memory;

import it.bsoft.bin.util.UShort;

public class ShortRegister extends Memory{

	public ShortRegister() {
		super(2);
	}
	
	public UShort getValue(){
		return super.readShortAt(0);
	}
	
	public ShortRegister setValue(UShort value){
		super.writeShortAt(value, 0);
		return this;
	}
	
	public ShortRegister setValue(long value){
		super.writeShortAt(value, 0);
		return this;
	}
	

}
